// 引入封装好的axios
import LRequest from '../index'

// 多个网络请求 用一个枚举放在一起 分开放方便区分
enum DashboardAPI {
  categoryGoodsCount = '/goods/category/count',
  categoryGoodsSale = '/goods/category/sale',
  categoryGoodsFavor = '/goods/category/favor',
  adressGoodsSale = '/goods/address/sale'
}

export function getCatregoryGoodsCount() {
  return LRequest.get({
    url: DashboardAPI.categoryGoodsCount
  })
}

export function getCatregoryGoodsSale() {
  return LRequest.get({
    url: DashboardAPI.categoryGoodsSale
  })
}

export function getCatregoryGoodsFavor() {
  return LRequest.get({
    url: DashboardAPI.categoryGoodsFavor
  })
}

export function getAdressGoodsSale() {
  return LRequest.get({
    url: DashboardAPI.adressGoodsSale
  })
}
